翻訳と辞書
Words near each other
・ C-nario
・ C-NCAP
・ C-Net DS2
・ C-Netz
・ C-normal subgroup
・ C-Note
・ C*
・ C*-algebra
・ C*Base
・ C+
・ C++
・ C++ AMP
・ C++ classes
・ C++ Report
・ C++ Standard Library
C++ string handling
・ C++ Technical Report 1
・ C++/CLI
・ C++/CX
・ C++03
・ C++11
・ C++14
・ C++17
・ C++Builder
・ C+-probability
・ C+C Music Factory
・ C+C Music Factory (album)
・ C+C Music Factory discography
・ C--
・ C-101


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

C++ string handling : ウィキペディア英語版
C++ string handling

The C++ programming language has support for string handling, mostly implemented in its standard library. The language standard specifies several string types, some inherited from C, some newly designed to make use of the language's features, such as templates and the RAII resource management idiom.
Since the initial versions of C++ had only the "low-level" C string handling functionality and conventions, multiple incompatible designs for string handling classes have been designed over the years, and C++ programmers may need to handle multiple conventions in a single application.
==History==
The type is the main string datatype in standard C++ since 1998, but it was not always part of C++, and still is not the only standard string type: from C, C++ inherited the convention of using null-terminated strings that are handled by a pointer to their first element, and a library of functions that handle such strings. In modern standard C++, a string literal such as still denotes a NUL-terminated array of characters and has support for converting itself to such an array.
In a 1991 retrospective on the history of C++, its inventor Bjarne Stroustrup called the lack of a standard string type (and some other standard types) in C++ 1.0 the worst mistake he made in its development; "the absence of those led to everybody re-inventing the wheel and to an unnecessary diversity in the most fundamental classes".
Over the years, C++ application, library and framework developers produced their own, incompatible string representations, such as the one in AT&T's Standard Components library (the first such implementation, 1983) or the type in Microsoft's MFC. While standardized strings, legacy applications still commonly contain such custom string types and libraries may expect C-style strings, making it "virtually impossible" to avoid using multiple string types in C++ programs and requiring programmers to decide on the desired string representation ahead of starting a project.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「C++ string handling」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.